/*****************************************************************************
*
*  PROJECT:     SlipStream
*               (General Library)
*  LICENSE:     GNU General Public License v3 - http://www.gnu.org/licenses/gpl.html

*  DEVELOPERS:  Philip Farquharson	<B00137077@studentmail.uws.ac.uk>
*				John Gray			<B00145524@studentmail.uws.ac.uk>		
*				Zohaib Bhatti		<B00104280@studentmail.uws.ac.uk>
*				Euan Hislop			<B00138636@studentmail.uws.ac.uk>
*
*****************************************************************************/
#ifndef LIB_H
#define LIB_H

#include <ctime>

#define SETTINGS_FILENAME			"settings.dat"

// boolean version of strcmp
#define STRING_COMPARE(str, str2) strcmp(str, str2) == 0

// safe memory deletion functions
#define SAFE_DELETE(ptr) { if (ptr) { delete ptr; ptr = NULL; } }
#define SAFE_DELETE_ARRAY(ptr) { if (ptr) { delete [] ptr; ptr = NULL; } }

// CPU tick functions
#define GET_TICK() clock()

#endif